package mest.dao.Modeling;

import mest.VO.hank.model.customer_fileModel;
import mest.VO.hank.model.save_fileModel;
import mest.VO.hws.save_fileVO;
import mest.entity.provider_file;
import mest.entity.save_file;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Description
 * @auther Machenike
 * @create 2019-11-16 0:32
 */
public interface IsaveFileDao {
    //    1.新增功能
    int insertsaveFile(@Param("save_file")save_file sf,@Param("theirDb")String theirDb) throws  Exception;
    //   2.基本查询-数量
    int selectCount(@Param("theirDb")String theirDb);
    //   3.基本查询-分页
    List<save_fileVO> findSaveFilePage(@Param("index") int index, @Param("pageSize") int pageSize , @Param("theirDb") String theirDb);
    //1.删除方法
    int delModel(@Param("id")Integer id,@Param("theirDb")String theirDb);
    //2.动态更新某个值
    int updateByPrimaryKeySelective(@Param("save_file")save_file record,@Param("theirDb")String theirDb);
    //1.基本查询-分页-模糊查询-过滤删除订单
    List<save_fileModel> queryAllModel(@Param("index") Integer index,
                                       @Param("pageSize") Integer pageSize, @Param("record") String record,@Param("theirDb")String theirDb);
    //2.查询总数
    int findCount(@Param("record") String record,@Param("theirDb")String theirDb);

    //2.根据id查询存货档案
    Map<String, Object> selectByid(Map<String, Object> map);

}
